package com.yt;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Classname AppPay8001
 * @Description
 * @Date 2021/10/17 19:09
 * @Create by 杨涛
 */
@SpringBootApplication
@MapperScan("com.yt.dao")
@EnableEurekaClient
//并没有配置，也能正常使用注入,未来要替代上面的 @EnableEurekaClient
@EnableDiscoveryClient
public class AppPay8001 {
    //mboot的配置方法：设置 editor --> live template --> 添加
    //$class$ 定义变量，然后编辑变量 －－＞ Edit Var
    public static void main(String[] args) {
        SpringApplication.run(AppPay8001.class,args);
    }
}
